import request from '@/utils/request'
// 学科列表获取
export const subjectListAPI = (page, pagesize) => {
  return request({
    method: 'get',
    url: '/subjects',
    params: { page, pagesize }
  })
}
// 目录列表数据获取

export const catalogueListAPI = (page, pagesize) => {
  return request({
    method: 'get',
    url: '/directorys',
    params: { page, pagesize }
  })
}
// 标签列表获取
export const labelListAPI = (page, pagesize) => {
  return request({
    method: 'get',
    url: '/tags',
    params: { page, pagesize }
  })
}
// 学科删除
export const delsubjectAPI = (id) => {
  return request({
    method: 'delete',
    url: `/subjects/${id}`
  })
}
// 目录删除
export const delcatalogueAPI = (id) => {
  return request({
    method: 'delete',
    url: `/directorys/${id}`
  })
}
// 标签删除
export const dellabelAPI = (id) => {
  return request({
    method: 'delete',
    url: `/tags/${id}`
  })
}
